header {
  width: 100%;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 5px solid #3498db;
}
header .navbar {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
}
header .navbar .logo {
  color: #2ecc71;
  font-size: 1.25rem;
  font-weight: 700;
  margin-right: 1.25rem;
}
header .navbar .right_wrap {
  display: flex;
  flex-grow: 1;
  align-items: center;
}
header .navbar .right_wrap a {
  padding: 0.4375rem 0.9375rem;
  border-radius: 5px;
  transition: all 0.3s;
}
header .navbar .right_wrap .links {
  display: flex;
  flex: 1;
  align-self: flex-start;
  justify-content: space-between;
}
header .navbar .right_wrap .links li a {
  color: #2ecc71;
}
header .navbar .right_wrap .links li a:hover,
header .navbar .right_wrap .links li a.active {
  color: #ecf0f1;
  background-color: #2ecc71;
}
header .navbar .right_wrap .form {
  margin-left: 0.625rem;
  user-select: none;
}
header .navbar .right_wrap .form a {
  border: 1px solid #2ecc71;
  color: #27ae60;
  margin: 0 5px;
}
header .navbar .right_wrap .form a:hover,
header .navbar .right_wrap .form a.register {
  background-color: #3498db;
  color: #ecf0f1;
}
header .navbar .right_wrap .form a.register {
  opacity: 0.8;
}
header .navbar .right_wrap .form a.register:hover {
  opacity: 1;
}
header label,
header label + input {
  display: none;
}
@media all and (max-width: 768px) {
  header .navbar {
    flex-flow: row wrap;
  }
  header .navbar .logo {
    margin-right: auto;
  }
  header .navbar .right_wrap {
    flex-flow: column wrap;
    height: 0;
    width: 100%;
    overflow: hidden;
  }
  header .navbar .right_wrap .links {
    flex-direction: column;
  }
  header .navbar .right_wrap .links li {
    margin: 0.625rem 0;
    margin-left: 0;
    width: 100%;
  }
  header .navbar .right_wrap .links li a {
    display: inline-block;
    width: 100%;
  }
  header .navbar .right_wrap .form {
    display: flex;
    margin-right: auto ;
    margin-bottom: 0.625rem;
  }
  header .navbar label {
    display: block;
    margin: 5px 0;
    padding: 0.625rem;
    font-size: 1.25rem;
    color: #2980b9;
    cursor: pointer;
    border: 2px solid #ecf0f1;
  }
  header .navbar label:hover {
    border-color: #2980b9;
  }
  header .navbar label + input:checked + .right_wrap {
    height: auto;
  }
}
